-- GENERATED SPELL FOR [Steamrigger Mechanic] --


function spell0_17951(pUnit, Event) --@Dispel Magic,n/a--
pUnit:FullCastSpellOnTarget(17201,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17951', 595, 1)
end

function Sorts_17951(pUnit, Event)
local choix_sorts_17951 = math.random(0, 0)
if choix_sorts_17951 == 0 then
pUnit:RegisterEvent('spell0_17951', 1, 1)
end
end

function mob17951_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17951', math.random(1500, 3000), 1)
end

function mob17951_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17951_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17951_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17951, 1, 'mob17951_Action')
RegisterUnitEvent(17951, 2, 'mob17951_Leave')
RegisterUnitEvent(17951, 3, 'mob17951_Kill')
RegisterUnitEvent(17951, 4, 'mob17951_Die')
